package GameUI;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Test extends JFrame implements ActionListener {
	JButton jbt1=new JButton("按钮1");
	JButton jbt2=new JButton("按钮2");
	public Test(){
		this.setSize(603, 680);
		this.setTitle("拼图游戏界面");
		this.setAlwaysOnTop(true);
		//设置界面居中
		this.setLocationRelativeTo(null);
		//设置关闭模式
		this.setDefaultCloseOperation(3);
		this.setLayout(null);


		jbt1.setBounds(0,0,100,100);
		jbt1.addActionListener(this);

		//取消默认布局
		this.setLayout(null);
	}

	@Override
	public void actionPerformed(ActionEvent e) {

	}
}
